package com.tfxy.hxl.entity.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 课程查询条件类
 */
@Data
@Schema(description = "课程查询条件")
public class CourseQuery {

    @Schema(description = "课程标题")
    private String title;

    @Schema(description = "教练姓名")
    private String instructor;

    @Schema(description = "课程分类ID")
    private Long categoryId;

    @Schema(description = "难度等级：1-初级，2-中级，3-高级")
    private Integer difficultyLevel;

    @Schema(description = "最小价格")
    private BigDecimal minPrice;

    @Schema(description = "最大价格")
    private BigDecimal maxPrice;

    @Schema(description = "课程状态：1-上架，0-下架")
    private Integer status;

    @Schema(description = "开始时间")
    private String beginTime;

    @Schema(description = "结束时间")
    private String endTime;

    @Schema(description = "排序字段：rating-评分，enroll_count-报名数，price-价格，create_time-创建时间")
    private String sortField;

    @Schema(description = "排序方式：asc-升序，desc-降序")
    private String sortOrder;
}
